import 'dart:ui';

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class BackdropFilterDemo extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('BackdropFilter'),
        centerTitle: true,
      ),
      body: Stack(
        alignment: Alignment.center,
        children: [
          Container(
            width: 300,
            height: 400,
            child: Image.asset('images/guide_img03.jpg'),
          ),
          BackdropFilter(filter: ImageFilter.blur(sigmaX: 5,sigmaY: 5),
            child: Center(
              child: Container(
                color: Colors.red.withOpacity(0),
                child: Text('提示文字',style: TextStyle(color: Colors.blue),),
              ),
            ),
          )
        ],
      ),

    );
  }

}